package com.zyg.user.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.apache.commons.lang3.StringUtils;

public class MyBlockHandler {

    public static String myBlockHandler2(BlockException ex) {
        String msg = ex.getMessage();
        if(StringUtils.isBlank(msg)){
            msg= "出现了BlockException异常!";
        }
        return "myBlockHandler[自定义类实现]-->:" + msg;
    }
}